package se480.tracker.proxy;

import org.apache.log4j.Logger;

import se480.tracker.event.TrackerEvent;
import se480.tracker.tracker.Tracker;

/**
 * This is the tread that is started by the AsynchProxy
 * that performs an update with TrackerA
 * 
 * @author mmichalak
 *
 */
public class AsynchCommunication implements Runnable {
	static Logger logger = Logger.getLogger(AsynchCommunication.class.getName());
	
	TrackerEvent asynchEvent = null;
	Tracker trackerA = null;
	
	@Override
	public void run() {
		logger.debug("Strarting AsynchComm Thread...");
		trackerA.processRequest(asynchEvent);
	}
	

	public TrackerEvent getAsynchEvent() {
		return asynchEvent;
	}

	public void setAsynchEvent(TrackerEvent asynchEvent) {
		this.asynchEvent = asynchEvent;
	}


	public Tracker getTrackerA() {
		return trackerA;
	}


	public void setTrackerA(Tracker a) {
		this.trackerA = a;
	}

}
